import request from '@/utils/request'

// 查询时间类型列表
export function listSeasontype(query) {
  return request({
    url: '/bomcostestimation/basedocument/seasontype/list',
    method: 'get',
    params: query
  })
}

// 查询时间类型详细
export function getSeasontype(fid) {
  return request({
    url: '/bomcostestimation/basedocument/seasontype/' + fid,
    method: 'get'
  })
}

// 新增时间类型
export function addSeasontype(data) {
  return request({
    url: '/bomcostestimation/basedocument/seasontype',
    method: 'post',
    data: data
  })
}

// 修改时间类型
export function updateSeasontype(data) {
  return request({
    url: '/bomcostestimation/basedocument/seasontype',
    method: 'put',
    data: data
  })
}

// 删除时间类型
export function delSeasontype(fid) {
  return request({
    url: '/bomcostestimation/basedocument/seasontype/' + fid,
    method: 'delete'
  })
}
